package hlhj.fhp.newslib.network

import android.content.Context
import hlhj.fhp.newslib.BaseAty
import hlhj.fhp.newslib.BaseFgm
import rx.functions.Action0

/**
 * Created by Administrator on 2018\6\21 0021.
 */
class LoadingAction(private val context: Context) : Action0 {
    override fun call() {
        if (context!=null){
            if (context is BaseAty){
                context.loadingDialog.show()
            }else if (context is BaseFgm){
                context.loadingDialog.show()
            }
        }
    }

}